#include "../source/server.hpp"

int main()
{
    Socket client_sock;
    client_sock.CreateClient(8080, "127.0.0.1");
    for (int i = 0; i < 5; ++i)
    {
        std::string str = "hello world";
        client_sock.Send(str.c_str(), str.size());

        char buf[1024] = {0};
        client_sock.Recv(buf, sizeof(buf) - 1);
        DBG_LOG("recv from server: %s", buf);
        sleep(1);
    }
    while (1)
    {
        sleep(1);
    }
}